using System;

namespace DaprPlus.Authorization.OpenIddict;

public class OpenIddictValidationOptions
{
    public const string Position = "OpenIddictValidation";

    /// <summary>
    /// 获取或设置 Authority地址
    /// </summary>
    public string Authority { get; set; } = null!;

    /// <summary>
    /// 获取或设置 Audiences
    /// </summary>
    public string[] Audiences { get; set; } = [];

    /// <summary>
    /// 获取或设置 是否需要HTTPS
    /// </summary>
    public bool RequireHttpsMetadata { get; set; } = true;

    /// <summary>
    /// 获取或设置 令牌自省的客户端ID
    /// </summary>
    public string? IntrospectionClientId { get; set; }

    /// <summary>
    /// 获取或设置 令牌自省的客户端密钥
    /// </summary>
    public string? IntrospectionClientSecret { get; set; }
}
